package com.qf.lanzhou.shop.api.service.impl;

import com.qf.lanzhou.shop.pojo.entity.User;

import com.qf.lanzhou.shop.api.dao.LoginpassMapper;
import com.qf.lanzhou.shop.api.service.LoginpassService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author jian
 * @Date 2021/1/9 9:16
 * @JDK 1.8
 * @Version 1.0
 */
@Service
public class LoginpassServiceimpl implements LoginpassService {

    @Autowired
    private LoginpassMapper loginpassMapper;

    @Override
    public User selectUser(String userName) {
        User user = loginpassMapper.selectAll(userName);

        return user;
    }

    @Override
    public User selectlogintime(String userName1) {
        return loginpassMapper.select(userName1);
    }


    @Override
    public int update(String userName1) {
        return loginpassMapper.update(userName1);
    }

    @Override
    public User select(String userName) {
        return loginpassMapper.selectname(userName);
    }

    @Override
    public int updatepassword(String userName, String password) {
        return loginpassMapper.updatepassword(userName,password);
    }

    @Override
    public User selectallagain(String userName1) {
        return loginpassMapper.selectallagain(userName1);
    }
}
